﻿using System.ComponentModel;
using Loki.Utils;

namespace Loki.Core.Test.Events
{
    public class DummyObserver
    {
        public DummyObserver(DummyObserved P_Watched)
        {
            Count = 0;
            this.WatchPropertyChanged(P_Watched, w => w.Property, o => o.Observed_Changed);
        }

        public int Count { get; set; }

        private void Observed_Changed(object sender, PropertyChangedEventArgs e)
        {
            Count++;
        }
    }
}